﻿#region Using directives

using System;
using System.ComponentModel;

#endregion

namespace NetROS.Tiers.Entities
{	
	///<summary>
	/// An object representation of the 'tblObracunOsoba' table. [No description found the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
    [Serializable]
    [CLSCompliant(true)]
    public partial class ObracunOsoba : ObracunOsobaBase
    {
        #region Constructors

        ///<summary>
        /// Creates a new <see cref="ObracunOsoba"/> instance.
        ///</summary>
        public ObracunOsoba() : base() { }

        #endregion

        [DescriptionAttribute(""), System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
        [DataObjectField(false, false, true)]
        public virtual System.String OsobaSourcePrezimeIme
        {
            get
            {
                if (IDOsobaSource != null)
                {
                    return IDOsobaSource.PrezimeIme;
                }
                return "";


            }
        }

        [DescriptionAttribute(""), System.ComponentModel.Bindable(System.ComponentModel.BindableSupport.Yes)]
        [DataObjectField(false, false, true)]
        public virtual System.Decimal? OsobniOdbitakIznos
        {
            get
            {
                if (IDObracunSource != null)
                {                    
                    return (decimal)OsobniOdbitak * IDObracunSource.MinimalniOsobniOdbitak;
                }
                return null;
            }
        }
    }
}
